﻿using SCM.Common;
using SCM.Model.DBEntity;

namespace SCM.Servie.IBusiness
{
    /// <summary>
    /// 日志服务接口
    /// </summary>
    public interface ILogService
    {
        bool AddBusinessLog(T_BusinessExceptionLog model);

        bool AddErrorLog(T_ErrorLog model);

        T_BusinessExceptionLog GetBusinessLog(string id);

        T_ErrorLog GetErrorLog(string id);

        PageData<T_BusinessExceptionLog> Query(string ip, string userName, string content, PageInfo page);

        PageData<T_ErrorLog> Query(string ip, string userName, string msg, string source, PageInfo page);
    }
}
